<?php

namespace App\Models;

class CarActivity extends Model
{
    protected $table = 'yf_car_activity';
    protected $primaryKey = 'car_activity_id';
    public $timestamps = false;
    protected $guarded = ['car_activity_id'];
    protected $casts = [
        'car_activity_image' => 'array',
        'goods_common_id' => 'array'
    ];

    public function goodsCat()
    {
        return $this->hasOne(GoodsCat::class, 'cat_id', 'car_cat_id');
    }
}
